<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/30
 * Time: 10:54
 */
namespace app\index\controller;




use think\Controller;
use think\Db;

class Newarrival extends Controller{
    public function newarrival(){

        $power=Db::view("dress","did") ->select();
        $powertr=Db::view("dress",['did'=>"did1"])
            ->view("dress_tr","tid,did,brand_zi,name,images,price","dress.did=dress_tr.did")
            ->select();
        //dump($power);
       // dump($powertr);die;
        $brand=Db::view("brand_zi","brandzi_list")
            ->view("dress_tr","brand_zi","brand_zi.brandzi_id=dress_tr.brand_zi")
            ->select();
        //dump($brand);
        $this->assign("brand",$brand);
        $this->assign("power",$power);
        $this->assign("powertr",$powertr);
        return $this->fetch();
    }
}